package geovis.springcloud.demo.stream.producer;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class StreamController {

    @Autowired
    StreamService streamService;

    @GetMapping("/send/channel1")
    public String sendChannel1(String message){
        streamService.sendMessageToChannel1(message);

        return "send to channel1 : " + message;
    }
}
